package com.huixin.zhang.persistence.entity;

import java.util.Date;

import com.huixin.zhang.service.core.EntityCurdService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Builder;

import java.io.Serializable;

/**
 * @author: '张灿刚'
 * @date: 2021-03-04 17:15:27
 * @description: 登录账号(BaseAccount)实体类
 */
@Data
@Builder
@ApiModel("登录账号实体类")
public class BaseAccount implements Serializable {
    private static final long serialVersionUID = 614748817128634203L;



    @ApiModelProperty("")
    private Long accountId;

    @ApiModelProperty("用户Id")
    private Long userId;

    @ApiModelProperty("标识：手机号、邮箱、 用户名、或第三方应用的唯一标识")
    private String account;

    @ApiModelProperty("密码凭证：站内的保存密码、站外的不保存或保存token）")
    private String password;

    @ApiModelProperty("登录类型:password-密码、mobile-手机号、email-邮箱、weixin-微信、weibo-微博、qq-等等")
    private String accountType;

    @ApiModelProperty("账户域:@admin.com,@developer.com")
    private String domain;

    @ApiModelProperty("注册IP")
    private String registerIp;

    @ApiModelProperty("状态:0-禁用 1-启用 2-锁定")
    private Integer status;

    @ApiModelProperty("注册时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("创建者ID")
    private Long createrId;

    @ApiModelProperty("更新者ID")
    private Long updaterId;

    @ApiModelProperty("单位ID")
    private Long companyId;

}

